package com.kgc.collection.remote;

import com.kgc.basic.util.ResponseMsg;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

public interface PrePayApi {
    @RequestMapping("/getPrePayPage")
    ResponseMsg getPrePayPage(@RequestBody Map<String, Object> params);

    @RequestMapping("/addPrePay")
    ResponseMsg addPrePay(@RequestBody Map<String, Object> params);

    @RequestMapping("/updatePrePay")
    ResponseMsg updatePrePay(@RequestBody Map<String, Object> params);

    @RequestMapping("/getPrePay")
    ResponseMsg getPrePay(@RequestBody Map<String, Object> params);

    @RequestMapping("/modiPrePay")
    ResponseMsg modiPrePay(@RequestBody Map<String, Object> params);

    @RequestMapping("/getPrePayList")
    ResponseMsg getPrePayList(@RequestBody Map<String, Object> params);

    @RequestMapping("calPrePayRefund")
    ResponseMsg calPrePayRefund(@RequestParam(name = "code") String code);
}
